const mongoose = require('mongoose')

const exerciseSchema = new mongoose.Schema({
    analysis: String,
    answer: String,
    options: Array,
    pointId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'pointModel'
    },
    score: String,
    topics: String
})

mongoose.model('exerciseModel',exerciseSchema,'exercises');
module.exports.exerciseModel = 'exerciseModel';